import { getAllRoundTypes } from '../models/roundType.js'

export const getRoundTypes = async (req, res) => {
  try {
    const roundTypes = await getAllRoundTypes()
    res.json(roundTypes)
  } catch (error) {
    res.status(500).json({ error: error.message })
  }
} 